xenctx: Add error output if --all-vcpus (-C) and [VCPU] are both specified.
authorDon Slutz <dslutz@verizon.com>
Thu, 3 Apr 2014 19:07:02 +0000 (15:07 -0400)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 4 Apr 2014 08:28:08 +0000 (09:28 +0100)
commitb4a7842aabb6aab29f4e7b3a8157589c612a01de
treeee9c727cbcfe65b67eceb7a40e00546d2a1b51d9
parent4cc08263af38492680cd828abd62fc65cc79bd1f
xenctx: Add error output if --all-vcpus (-C) and [VCPU] are both specified.

To do this correctly the program name must be remembered since argv
is adjusted at the end of option parsing.

Switch all uses of argv[0] to prog.

Signed-off-by: Don Slutz <dslutz@verizon.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/xentrace/xenctx.c